package net.lucamasini.ricette.client.ingredienti;

import java.util.List;

import net.lucamasini.ricette.server.RicetteServiceLocator;
import net.lucamasini.ricette.server.RicetteServiceServlet;

import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.RequestContext;
import com.google.gwt.requestfactory.shared.Service;

@Service(value = RicetteServiceServlet.class, locator = RicetteServiceLocator.class)
public interface IngredientiRequest extends RequestContext {
	Request<List<IngredienteProxy>> findAllIngredienti();
	Request<Void> salvaIngrediente(IngredienteProxy ingrediente, String keyTI);
	Request<Void> cancellaIngrediente(IngredienteProxy ingrediente);
}
